﻿using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Domain.Entities;

namespace Ebusiness_UserService.Services.Dtos.User
{
    public class UserDto : EntityDto<Guid>
    {
        public string? UserName { get; set; }             // 登录用户名
        public string? DisplayName { get; set; }          // 显示名称（昵称）
        public string? Email { get; set; }                // 邮箱
        //public string? PhoneNumber { get; set; }          // 手机号
        public string? PasswordHash { get; set; }         // 密码哈希
        public string? AvatarUrl { get; set; }            // 头像链接
        public bool IsActive { get; set; } = true;       // 是否启用
        public bool IsDeleted { get; set; } = false;     // 是否逻辑删除
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;  // 创建时间
        public string? CreatedBy { get; set; }                        // 创建人
        public DateTime? UpdatedAt { get; set; } = DateTime.UtcNow;      // 更新时间
        public string? UpdatedBy { get; set; }            // 更新人
        public DateTime? LastLoginTime { get; set; } = DateTime.UtcNow;    // 最近登录时间
        //public UserAccessFailDto userAccessFailDto { get; set; }

        /// <summary>
        /// 手机号码
        /// </summary>
        public PhoneNumber? phoneNumber { get; set; }
    }
}
